package com.zzz.dubbo;

import com.zzz.dubbo.service.DemoService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class CM01Application {
    public static void main(String[] args) throws Exception {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring/dubbo-consumer.xml");
        context.start();
        DemoService demoService = context.getBean("demoService", DemoService.class);
        String hello = demoService.sayHello("world1");
        System.err.println("result: " + hello);
    }
}
